<template>
  <div><el-dialog title="新增标签" :visible="dialogFormVisibleER">
    <el-form>
      <el-form-item label="标签标题" :label-width="formLabelWidth">
        <el-input v-model="newtag" autocomplete="off" />
      </el-form-item>

    </el-form>
    <div slot="footer" class="dialog-footer">
      <el-button @click="dialogFormVisibleER = false">取 消</el-button>
      <el-button type="primary" @click="tagOK">确 定</el-button>
    </div>
  </el-dialog>
  </div>
</template>

<script>
export default {
  data() {
    return {
      newtag: '',
      dialogFormVisibleER: false,

      formLabelWidth: '70px'
    }
  }, methods: {

    tagOK() {
      this.$emit('newtags', this.newtag)
      this.newtag = ''
      this.dialogFormVisibleER = false
    }
  }

}
</script>

<style>

</style>
